package com.ruleengine.parser.impl;


import org.dom4j.Element;

import com.ruleengine.parser.ITaskContants;
import com.ruleengine.parser.exception.RuleEngineParserException;
import com.ruleengine.task.impl.WorkflowTask;

public class WorkflowTaskParser extends ComplexTaskParser<WorkflowTask> {

    /* (non-Javadoc)
     * @see com.ruleengine.parser.impl.BaseTaskParser#preParseTask(org.dom4j.Element, com.ruleengine.task.ITask)
     */
    @Override
    public WorkflowTask preParseTask(Element ele, WorkflowTask task)
            throws RuleEngineParserException {
        // TODO Auto-generated method stub
        String name = ele.attributeValue(ITaskContants.ATTRI_TAG_NAME).trim();
        task.setName(name);
        return task;
    }

    
}
